 package com.ch.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ch.web.ResponseDto.xyGz.XyGzFsCountResponse;
import com.ch.web.entity.user.XyGzEntity;
import com.ch.web.requestDto.xyGzRequest.XyGzFsRequest;
import com.ch.web.utils.PageUtils;
import com.ch.web.utils.R;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 
 *
 * @author chenHao
 * @email 1429542285@qq.com
 * @date 2022-10-16 15:44:28
 */
public interface XyGzService extends IService<XyGzEntity> {

    PageUtils queryPage(Map<String, Object> params);

    boolean getIsGzUser(Long currentUserId, Long userId);

    boolean save(XyGzEntity xyGz, HttpServletRequest request);

    R cancelGz(XyGzEntity xyGzEntity, HttpServletRequest request);

    R getUserGzCount(XyGzEntity xyGzEntity);

    XyGzFsCountResponse getUserFsCount(XyGzFsRequest xyGzFsRequest);
}

